import axios from '@/libs/api.request'

/**
 * 表具详情
 * @param  {[type]} id [description]
 * @return {[type]}        [description]
 */
export const getMeterAndUserInfo = (id) => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterUnitDetail/' + id,
    method: 'get'
  })
}

/**
 * 表具详情
 * @param  {[type]} id [description]
 * @return {[type]}        [description]
 */
export const fetchLifeCycle = (params) => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getAnomalyByMeterId',
    method: 'get',
    params
  })
}
